package com.thinkgem.jeesite.modules.sys.dao;


import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.sys.entity.TbOrderProduct;
import com.thinkgem.jeesite.modules.sys.entity.TbOrderProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@MyBatisDao
public interface TbOrderProductMapper {
    int countByExample(TbOrderProductExample example);

    int deleteByExample(TbOrderProductExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbOrderProduct record);

    int insertSelective(TbOrderProduct record);

    List<TbOrderProduct> selectByExample(TbOrderProductExample example);

    List<TbOrderProduct> queryListOrderProduct(Integer orderId);

    List<TbOrderProduct> queryTbOrderProductsByOrderNo(String orderNo);

    TbOrderProduct selectByPrimaryKey(Integer id);

    TbOrderProduct selectByPrimaryOrderId(Integer orderId);


    int updateByExampleSelective(@Param("record") TbOrderProduct record, @Param("example") TbOrderProductExample example);

    int updateByExample(@Param("record") TbOrderProduct record, @Param("example") TbOrderProductExample example);

    int updateByPrimaryKeySelective(TbOrderProduct record);

    int updateByPrimaryKey(TbOrderProduct record);

    void deleteOrder(Integer orderId);
}